<style type="text/css">
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:3.6rem}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
.colltime {
	text-align: center;
	margin: 0 0.2rem;
	width: 35px;
	height: 35px;
	font-size:12px;
	color:	#C0C0C0;
}
.collchecked {
	background:none;
	color:#000000;
	border-bottom:1px solid #000000;
}
</style>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'main'">
	<div class="fui-content">
		<div class="xcontainer weui_cells_radio3" style="z-index:0;padding:0.3rem;width:100%;display:flex">
			<label class="jyui_cell_col" ng-repeat="item in pagedata.data" style="flex:auto;">
				<div ng-class="{'colltime':1,'collchecked':pagedata.post.dayid==$index}"  ng-click="getdata(pagedata.class.id,$index,item.wi);pagedata.post.dayid=$index;">
					<div class="timetitle"><span>{{item.xinq}}</span></div>
					<div class="timetitle"><span>{{item.riqi}}</span></div>
				</div>
			</label>
		</div>
		<div class="weui_cells_title">{{pagedata.storetitle}}({{pagedata.class.title}})</div>
		<div class="c" style="font-size:10px;background:#D3D3D3;height:24px;line-height:24px;">请于开课前8小时预约</div>
		<div class="fui-list-group merchgroup" ng-repeat="item1 in pagedata.lessons" >
            <div class="fui-list">
                <a class="fui-list-media storelogo" href="javascript:;" ng-click="post(pagedata.post,'jy_edu/book/yuyue/lessonid='+item1.lesson.id+'&workerid='+item1.worker.id+'&start='+item1.time.start+'&end='+item1.time.end)">
                    <img class="round" ng-src="{{tomedia(item1.lesson.logo) || '../core/resource/images/nopic.jpg'}}" width="40" height="40">
                </a>
                <a class="fui-list-inner" style="margin-top:0.16rem;margin:10px" href="javascript:;" ng-click="post(pagedata.post,'jy_edu/book/yuyue/lessonid='+item1.lesson.id+'&workerid='+item1.worker.id+'&start='+item1.time.start+'&end='+item1.time.end)">
                    <div class="title" style="font-size:0.7rem;"><span>{{item1.lesson.title}}({{item1.time.start}}~{{item1.time.end}})</span></div>
                    <div class="title f60" style="font-size:0.7rem;">班级：<span>{{item1.classgroup.title}}({{item1.class.title}})</span></div>
                    <div class="title" style="font-size:0.7rem;">老师：<span>{{item1.worker.name}}</span></div>
                </a>
            </div>
		</div>
		<div class="content-empty" ng-show="pagedata.lessons.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;font-size:2rem"></i><br/><p style="color: #999;font-size: .75rem">当天没有可约的课程！</p>
		</div>
</div>
<script type="text/javascript">
if(scope.pagedata.basic.dingwei!=1){
	window.scope.location(function(res){
		scope.pagedata.post.address = res.address;
		scope.$evalAsync();
	});
}
</script>
<script type="text/javascript">
scope.pagedata.post.dayid = 0;
scope.pagedata.post.packageid = 0;
//scope.pagedata.post.timeid = 0;
</script>
</div>

<div ng-include="sys_html('_footer')"></div>
<script>
	scope.getdata = function(classid,dayid,wi){
		var params1 = {
					'plugin':'jy_edu',
					'action':'book',
					'op':'get_lesson',
					'query':'classid='+classid+'&dayid='+dayid+'&wi='+wi,
					'data':{},
					'callback':function(data){
							if(data.success == 1){
								scope.pagedata.lessons = data.list;
								scope.$evalAsync();
							}
					}
		}
		scope.post_json(params1);
}

</script>